package io.kiki.sba.registry.server.metadata.remoting;

import io.kiki.sba.registry.server.metadata.bootstrap.config.ServerConfig;
import io.kiki.sba.registry.server.shared.remoting.ServerSideExchanger;
import org.springframework.beans.factory.annotation.Autowired;


public class SessionNodeExchanger extends ServerSideExchanger {

    @Autowired
    private ServerConfig serverConfig;

    @Override
    public int getRpcTimeoutMillis() {
        return serverConfig.getSessionNodeExchangeTimeoutMillis();
    }

    @Override
    public int getServerPort() {
        return serverConfig.getSessionServerPort();
    }
}
